import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

// 历史数据页面 - 占位页面
Item {
    id: root
    
    Rectangle {
        anchors.fill: parent
        color: "#f5f5f5"
        
        ColumnLayout {
            anchors.centerIn: parent
            spacing: 20
            
            Text {
                text: "📈 历史数据"
                font.pixelSize: 32
                font.bold: true
                color: "#333"
                Layout.alignment: Qt.AlignHCenter
            }
            
            Text {
                text: "数据查询、统计分析与导出"
                font.pixelSize: 16
                color: "#666"
                Layout.alignment: Qt.AlignHCenter
            }
            
            Rectangle {
                width: 400
                height: 2
                color: "#8b5cf6"
                Layout.alignment: Qt.AlignHCenter
            }
            
            Text {
                text: "💡 待开发功能："
                font.pixelSize: 14
                color: "#888"
                Layout.alignment: Qt.AlignHCenter
            }
            
            Column {
                spacing: 10
                Layout.alignment: Qt.AlignHCenter
                
                Text {
                    text: "✓ 时间范围选择器"
                    font.pixelSize: 12
                    color: "#666"
                }
                Text {
                    text: "✓ 历史数据表格（TableView）"
                    font.pixelSize: 12
                    color: "#666"
                }
                Text {
                    text: "✓ 统计分析（平均/最大/最小）"
                    font.pixelSize: 12
                    color: "#666"
                }
                Text {
                    text: "✓ CSV 导出功能"
                    font.pixelSize: 12
                    color: "#666"
                }
            }
        }
    }
    
    Component.onCompleted: {
        console.log("✅ HistoryPage 加载完成")
    }
}

